/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.hycreate.platform.modules.crm.mission;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hycreate.platform.common.persistence.Page;
import com.hycreate.platform.common.service.CrudService;

/**
 * 任务Service
 * @author yl
 * @version 2016-12-07
 */
@Service
@Transactional(readOnly = true)
public class MissionService extends CrudService<MissionDao, Mission> {

	public Mission get(String id) {
		return super.get(id);
	}
	
	public List<Mission> findList(Mission mission) {
		return super.findList(mission);
	}
	
	public Page<Mission> findPage(Page<Mission> page, Mission mission) {
		return super.findPage(page, mission);
	}
	
	@Transactional(readOnly = false)
	public void save(Mission mission) {
		super.save(mission);
	}
	
	@Transactional(readOnly = false)
	public void delete(Mission mission) {
		super.delete(mission);
	}
	
	@Transactional(readOnly = false)
	public List<Mission> getMission(String userId){
		
		return dao.getMission(userId);
	}
	
}